// clsFMOD.h: interface for the clsFMOD class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLSFMOD_H__1560733D_2C51_4719_811E_1EEBE2DBE7CC__INCLUDED_)
#define AFX_CLSFMOD_H__1560733D_2C51_4719_811E_1EEBE2DBE7CC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class clsFMOD  
{
public:
	int OpenSong(LPCSTR FileName,int bLoadMemory,int offset,int length);
	int OpenSong(LPCSTR FileName,int bLoadMemory);
	int OpenSong(LPCSTR FileName);
	void SetMute(int i);
	void SetVolume(int vol);
	int GetVolume();
	int PlayedTime();
	int IsFinished();
	int IsPaused();
	int IsPlaying();
	void StopSong();
	void PlaySong();
	void UnpauseSong();
	void PauseSong();
	void CloseSong();
	void SetPos(int pos);
	int GetPos();
	int GetLength();
	HANDLE GetHandle();
	int GetMute();
	void ClearUp();
	int Init(int mixrate,int maxchannels);
	clsFMOD();
	~clsFMOD();
private:
	void pApplyVol();
	void pFree();
	void pInit();
	int bRef;
	int v;
	int mt;
	int lng;
	HANDLE hMus,hStr;
	int hStr2;
};

#endif // !defined(AFX_CLSFMOD_H__1560733D_2C51_4719_811E_1EEBE2DBE7CC__INCLUDED_)
